
package com.be.beadmin.quality.repository;

import com.be.beadmin.quality.entity.InspectionItemValue;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author zjm
* @date 2023-05-28
**/
public interface InspectionItemValueRepository extends JpaRepository<InspectionItemValue, String>, JpaSpecificationExecutor<InspectionItemValue> {

    InspectionItemValue findInspectionItemValueByIdAndDelete(String id, Integer delete);


    InspectionItemValue findInspectionItemValueByInspectionTaskIdAndTemplateInspectionItemIdAndDelete(String inspectionTaskId,String templateInspectionItemId, Integer delete);
    List<InspectionItemValue> findInspectionItemValueByTemplateInspectionItemIdAndDelete(String templateInspectionItemId, Integer delete);


    List<InspectionItemValue> findInspectionItemValuesByInspectionTaskIdAndDelete(String inspectionTaskId, Integer delete);

    InspectionItemValue findInspectionItemValueById(String id);

}